package com.hxf.dto;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.PolymorphismType;

/**
 * 菜单实体类
 * 
 * @author tengyicheng
 * @version [1.0, 2013/09/23]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Entity
@Table(name = "RK_DIC_MENU")
@org.hibernate.annotations.Entity(selectBeforeUpdate = true, dynamicInsert = true, dynamicUpdate = true, polymorphism = PolymorphismType.EXPLICIT)
public class MenuDto extends BaseDto {
	private static final long serialVersionUID = 1L;

	private Integer menuId; // 主键菜单id
	private String menuName; // 菜单名称
	private Integer menuOrder; // 排序号
	private Integer parentId; // 上级菜单ID
	private String menuUrl; // 菜单跳转地址
	private Integer status; // 状态
	private String modifyUser; // 修改菜单用户
	private String modifyDate; // 修改时间
	private String createTime; // 创建时间
	private String createUser; // 创建人

	public MenuDto() {

	}

	public MenuDto(Integer menuId, String menuName, Integer menuOrder,
			Integer parentId, String menuUrl, Integer status,
			String modifyUser, String modifyDate, String createTime,
			String createUser) {
		this.menuId = menuId;
		this.menuName = menuName;
		this.menuOrder = menuOrder;
		this.parentId = parentId;
		this.menuUrl = menuUrl;
		this.status = status;
		this.modifyUser = modifyUser;
		this.modifyDate = modifyDate;
		this.createTime = createTime;
		this.createUser = createUser;
	}

	public MenuDto(Integer menuId, String menuName, Integer menuOrder,
			Integer parentId, String menuUrl, Integer status) {
		this.menuId = menuId;
		this.menuName = menuName;
		this.menuOrder = menuOrder;
		this.parentId = parentId;
		this.menuUrl = menuUrl;
		this.status = status;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "menu_id", unique = true, nullable = false)
	public Integer getMenuId() {
		return menuId;
	}

	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}

	@Column(name = "menu_name")
	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	@Column(name = "menu_order")
	public Integer getMenuOrder() {
		return menuOrder;
	}

	public void setMenuOrder(Integer menuOrder) {
		this.menuOrder = menuOrder;
	}

	@Column(name = "parent_id")
	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	@Column(name = "menu_url")
	public String getMenuUrl() {
		return menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "modify_user")
	public String getModifyUser() {
		return modifyUser;
	}

	public void setModifyUser(String modifyUser) {
		this.modifyUser = modifyUser;
	}

	@Column(name = "modify_date")
	public String getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(String modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Column(name = "create_time")
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "create_user")
	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
}
